/**
 * 作者: wgx
 * 日期: 2024-11-11 17:46:23
 * 备注: 玩家(市政中心)升级配置表
 */
package com.motu.monstercity.server.game.commondata.system;

import io.vertx.core.json.JsonObject;

public class UserExpModel {
	protected int level; // 等级
	protected String needTask; // 升级所需任务ID
	protected int dailyDiamond; // 每日领取钻石
	protected int beautyNum; // 约会次数
	protected int beautyCdTime; // 约会CD时间
	protected int childAddTrainNum; // 子嗣教室活力上限
	protected int childTrainAddExp; // 生娃奖励经验
	protected int childBasePower; // 生娃加成
	protected int childBasePower2; // 生娃加成2
	protected int childAddition; // 生娃附加
	protected int travelNum; // 游历次数
	protected int feastMaxNum; // 派对次数上限
	protected int feastEffect; // 宴会加成
	protected String eventNum; // 时间触发事件
	protected int peasonLimit; // 城市人口容量
	protected String reward; // 升级获得的奖励

	public UserExpModel() {
	}

	public UserExpModel(JsonObject obj) {
		level = obj.containsKey("level") ? obj.getInteger("level") : 0;
		needTask = obj.containsKey("need_task") ? obj.getString("need_task") : "";
		dailyDiamond = obj.containsKey("daily_diamond") ? obj.getInteger("daily_diamond") : 0;
		beautyNum = obj.containsKey("beauty_num") ? obj.getInteger("beauty_num") : 0;
		beautyCdTime = obj.containsKey("beauty_cd_time") ? obj.getInteger("beauty_cd_time") : 0;
		childAddTrainNum = obj.containsKey("child_add_train_num") ? obj.getInteger("child_add_train_num") : 0;
		childTrainAddExp = obj.containsKey("child_train_add_exp") ? obj.getInteger("child_train_add_exp") : 0;
		childBasePower = obj.containsKey("child_base_power") ? obj.getInteger("child_base_power") : 0;
		childBasePower2 = obj.containsKey("child_base_power2") ? obj.getInteger("child_base_power2") : 0;
		childAddition = obj.containsKey("child_addition") ? obj.getInteger("child_addition") : 0;
		travelNum = obj.containsKey("travel_num") ? obj.getInteger("travel_num") : 0;
		feastMaxNum = obj.containsKey("feast_max_num") ? obj.getInteger("feast_max_num") : 0;
		feastEffect = obj.containsKey("feast_effect") ? obj.getInteger("feast_effect") : 0;
		eventNum = obj.containsKey("event_num") ? obj.getString("event_num") : "";
		peasonLimit = obj.containsKey("peason_limit") ? obj.getInteger("peason_limit") : 0;
		reward = obj.containsKey("reward") ? obj.getString("reward") : "";
	}

	public int getLevel() {
		return level;
	}

	public String getNeedTask() {
		return needTask;
	}

	public int getDailyDiamond() {
		return dailyDiamond;
	}

	public int getBeautyNum() {
		return beautyNum;
	}

	public int getBeautyCdTime() {
		return beautyCdTime;
	}

	public int getChildAddTrainNum() {
		return childAddTrainNum;
	}

	public int getChildTrainAddExp() {
		return childTrainAddExp;
	}

	public int getChildBasePower() {
		return childBasePower;
	}

	public int getChildBasePower2() {
		return childBasePower2;
	}

	public int getChildAddition() {
		return childAddition;
	}

	public int getTravelNum() {
		return travelNum;
	}

	public int getFeastMaxNum() {
		return feastMaxNum;
	}

	public int getFeastEffect() {
		return feastEffect;
	}

	public String getEventNum() {
		return eventNum;
	}

	public int getPeasonLimit() {
		return peasonLimit;
	}

	public String getReward() {
		return reward;
	}

}
